<?php

/**
 *	@name Project
 *	@copyright : SMART - ULg (www.smart.ulg.ac.be)		
 *
**/


/**
 * Class Project : 
 * description
 * 
 * $Rev$ 
 * $LastChangedRevision$
 * $LastChangedBy$
 * $LastChangedDate$
 * $HeadURL$
 *
 * @name ProjectsListBroker
 * @package webservices/broker
 * @author : JPh HUMBLET
 * @copyright : SMART - ULg (www.smart.ulg.ac.be)
 * @category : ExAMS::Core
 *
**/

require_once("../classes/project/AbstractProjectItem.php");
require_once("../classes/project/Tasks.php");
require_once("../classes/project/Assignments.php");
require_once("../classes/project/Resources.php");


class Project extends AbstractProjectItem
{
	
	
	/**
	 * getTasks
	 * undocumented function
	 *
	 * @return Tasks
	 * @author jph (jp.humblet@ulg.ac.be)
	**/
	public function getTasks() {
		$r = simplexml_load_string($this->Tasks->asXML(), "Tasks");
		return $r;
	}
	
	
	/**
	 * setTasks
	 * 
	 *
	 * @return void
	 * @author jph (jp.humblet@ulg.ac.be)
	**/
	public function setTasks($tasks) {
		$this->Tasks = $tasks;
		return true;
	}

	/**
	 * getAssignments
	 * undocumented function
	 *
	 * @return Assignments
	 * @author jph (jp.humblet@ulg.ac.be)
	**/
	public function getAssignments() {
		$r = simplexml_load_string($this->Assignments->asXML(), "Assignments");
		return $r;
	}
	
	
	/**
	 * setAssignments
	 * 
	 *
	 * @return void
	 * @author jph (jp.humblet@ulg.ac.be)
	**/
	public function setAssignments($assignments) {
		$this->Assignments = $assignments;
		return true;
	}

	/**
	 * getResources
	 * undocumented function
	 *
	 * @return Resources
	 * @author jph (jp.humblet@ulg.ac.be)
	**/
	public function getResources() {
		$r = simplexml_load_string($this->Resources->asXML(),"Resources");
		return $r;
	}
	
	
	/**
	 * setResources
	 * 
	 *
	 * @return void
	 * @author jph (jp.humblet@ulg.ac.be)
	**/
	public function setResources($resources) {
		$this->Resources = $resources;
		return true;
	}
	
	
}


?>